<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    function fn(){
        setTimeout(()=>{
            return 100;
        })
    }
    console.log(fn());// undefined
</script>
</html>